package 作业4;

public class Demo1 {
    public static void main(String[] args) {
        int[] array = { 1, 2, 3 };
        String result = FromArrayToString(array);
        System.out.println(result);
    }
    public static String FromArrayToString(int[] array) {
        String str = "[";
        for (int i=0;i<array.length;i++){
            if (i!=array.length-1)
                str+="word"+array[i]+"#";
            if (i==array.length-1)
                str+="word"+array[i]+"]";
        }
        return str;
    }
}
